//
//  EditFlightCustomerController.h
//  ELife
//
//  Created by xiaozhi on 11-7-15.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FlightCustomerModel.h"
@class FlightCustomerModel;

@interface EditFlightCustomerController : UIViewController <UIActionSheetDelegate>{
    @private
    NSArray *_idTypeArray;
    NSArray *_insuranceArray;
    UIButton *_listener;
    NSArray *_curArray;
//    FlightCustomerModel *_customerModel;
    SEL _action; // 保存的回调函数
    id _obj;
}

@property (retain) FlightCustomerModel *_customerModel;
@property (retain, nonatomic) IBOutlet UITextField *nameTextField;
@property (retain, nonatomic) IBOutlet UITextField *phoneTextField;
@property (retain, nonatomic) IBOutlet UIButton *idTypeButton;
@property (retain, nonatomic) IBOutlet UITextField *idTextField;
@property (retain, nonatomic) IBOutlet UIButton *insuranceButton;
@property (retain, nonatomic) IBOutlet UIButton *birthdayButton;

// 设置一个需要修改的登机人
- (id)initWithCustomerModel:(FlightCustomerModel *)model obj:(id)obj backAction:(SEL)action;
- (IBAction)save;
- (IBAction)inputExplain;
- (IBAction)idExplain;
- (IBAction)inputFinished;
- (IBAction)pickBirthday;
- (IBAction)action:(id)sender;
@end
